// Functions associated with the RandomNumberGenerator class
//-----------------

//-----------------
// Includes libraries and other files
#include "RandomNumberGenerator.h"
//-----------------

//-----------------
//// CONSTRUCTOR - RandomNumberGenerator
RandomNumberGenerator::RandomNumberGenerator() {
	// seed the random number generator
	seed();
}
//-----------------

//-----------------
//// FUNCTION - get_random_value
// pick a random number between 1 and 'max' (the parameter)
int RandomNumberGenerator::get_random_value( int max) const {
	// Pre-conditions :- none
	assert( true);

	return(( rand() & max) + 1);
}

//// FUNCTION - seed
// seed the random number generator from the current system time (thus the number will be different everytime)
void RandomNumberGenerator::seed() const {
	srand( (unsigned)time( NULL));
}